package com.system.userconsumer.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Lisiyu
 * date 2022/10/19 22:52
 * version 1.0
 */
@Configuration
public class MyRibbonConfig {

    @Bean
    public IRule iRule(){
        //修改为随机
        return new RandomRule();
    }
}
